package com.pmt.feedplayer.core.logging

/**
 * iOS平台日志工具实现
 */
actual object LogUtil {
    actual fun d(tag: String, message: String) {
        print("DEBUG: [$tag] $message\n")
    }
    
    actual fun e(tag: String, message: String, throwable: Throwable?) {
        if (throwable != null) {
            print("ERROR: [$tag] $message\n${throwable.message ?: "Unknown error"}\n${throwable.stackTraceToString()}\n")
        } else {
            print("ERROR: [$tag] $message\n")
        }
    }
    
    actual fun i(tag: String, message: String) {
        print("INFO: [$tag] $message\n")
    }
    
    actual fun w(tag: String, message: String) {
        print("WARN: [$tag] $message\n")
    }
}